<template>
  <div @click.stop="toggleCollapsed">
    <Icon icon="ep:arrow-right" v-if="getCollapsed"></Icon>
    <Icon icon="ep:arrow-left" v-else></Icon>
  </div>
</template>
<script lang="ts">
import { defineComponent } from 'vue';
import { useMenuSetting } from '/@/hooks/setting/useMenuSetting';
import { Icon } from '/@/components/Icon'

export default defineComponent({
  name: 'SiderTrigger',
  components: { Icon },
  setup() {
    const { getCollapsed, toggleCollapsed } = useMenuSetting();

    return { getCollapsed, toggleCollapsed };
  },
});
</script>
